#!/bin/bash


echo $1 

if  [ "$2"x == "debug"x ]
then
	gcc -g $1 -lwiringPi -lwiringPiDev -lpthread -lm -lcrypt -lrt -lsqlite3 -o $3 
else
	gcc $1 -lwiringPi -lwiringPiDev -lpthread -lm -lcrypt -lrt -lsqlite3 -o $2
fi


